package com.zc.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * 文章标签实体类
 */
@TableName("t_tag")
public class Tag {

    @TableId(type = IdType.AUTO)
    private Integer id; //文章标签编号

    private String tagName; //文章标签名称

    private boolean tagShow=false; //是否展示

    private Integer showSort;

    @TableField(select = false)
    private List<Article> articleList; //文章实体

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public boolean isTagShow() {
        return tagShow;
    }

    public void setTagShow(boolean tagShow) {
        this.tagShow = tagShow;
    }

    public Integer getShowSort() {
        return showSort;
    }

    public void setShowSort(Integer showSort) {
        this.showSort = showSort;
    }

    public List<Article> getArticleList() {
        return articleList;
    }

    public void setArticleList(List<Article> articleList) {
        this.articleList = articleList;
    }
}
